# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Konstantin Gizdov < arch at kge dot pw >

pkgname=unuran
pkgver=1.9.0
pkgrel=1
pkgdesc='A C library for generating non-uniform pseudorandom variates.'
arch=('loong64' 'x86_64')
url='http://statmath.wu.ac.at/unuran/'
license=('GPL2')
depends=('gsl')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::http://statmath.wu.ac.at/$pkgname/$pkgname-$pkgver.tar.gz")
b2sums=('20a88e9004d284983770364f35941f8ea66e1c68ef8c0ea210e1b12d9027947fbf723032f22f88b87c8f649ab52c904b460673cee8d78a52ff5196a6f4212d9c')

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr --with-urng-gsl --enable-shared
  make "$MAKEFLAGS"
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
